<%@ page language="java" session="false" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ page import="com.google.appengine.api.images.ImagesServiceFactory" %>
<%@ page import="com.google.appengine.api.images.ImagesService" %>
<%@ page import="com.google.appengine.api.blobstore.BlobKey" %>

<%
	ImagesService imageService = ImagesServiceFactory.getImagesService();
%>

<html>
 <head>
  <title>Sample Spring MVC using Forms</title>
 </head>
 <body>
  <h2>Person Form</h2>
 <c:forEach items="${pictures}" var="pic">
 	<c:set var="blob" value="${pic.blob}"/> 
 	<img src="<%= imageService.getServingUrl((BlobKey)pageContext.getAttribute("blob")) %>=s200" />
 	 
 </c:forEach>
 </body>
</html>